package com.youbang.settings.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.youbang.settings.model.SettingEntity;
import com.youbang.settings.model.ThemeEntity;

@Component
public class SettingDao {
	@Autowired
	private SettingMapper settingMapper;
	public int updateByPrimaryKey(SettingEntity setting) throws Exception{
		return settingMapper.updateByPrimaryKey(setting);
	}
	public List<ThemeEntity> queryList()throws Exception{
		return settingMapper.queryList();
	}
	public ThemeEntity queryEntity(int id)throws Exception{
		return settingMapper.queryEntity(id);
	}

}
